From: Richard M. Stallman Date: Sat, 29 May 1993 05:59:09 +0000 (+0000) Subject: (XTring_bell): Do nothing if x_current_connection is 0. X-Git-Tag: archive/raspbian/1%29.2+1-2+rpi1^2~5^2~95817 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:///%22http:/www.example.com/cgi/%22https:/www.github.com/%22bookmarks:/?a=commitdiff_plain;h=5a6ef893cc360f7d7a2f0e1d77787980d27f7ff3;p=emacs.git (XTring_bell): Do nothing if x_current_connection is 0. --- diff --git a/src/xterm.c b/src/xterm.c index 033b1da5685..60f4c8850fc 100644 --- a/src/xterm.c +++ b/src/xterm.c @@ -830,6 +830,9 @@ XTflash (f) XTring_bell () { + if (x_current_display == 0) + return; + #if defined (HAVE_TIMEVAL) && defined (HAVE_SELECT) if (visible_bell) XTflash (selected_frame);